<template>
    <div class="son">
        I am Child1
        <button @click="emitter.emit('send-child1','i am child1')">Click Me</button>
    </div>
</template>
<script setup>
import {onMounted, ref} from 'vue';
import emitter from '@/utils/emitter';

</script>
<style scoped>
.son{
    left: 30vw;
    width: 25vw;
    background-color: rgb(129, 50, 213);
}
</style>